<?php


class node {
	private $data;
	private $next;

	public function setData($data) {
		$this->data = $data;
		return $this;
	}

	public function setNext(node &$next) {
		$this->next = $next;
		return $this;
	}

	public function getData() {
		return $this->data;
	}

	public function getNext() {
		return $this->next;
	}


}